package com.woniuxy.dr_mall.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 *
 * @author 张哲轩
 * @since 2021-08-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonIgnoreProperties("handler")
public class DrProducts implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    @TableField("productNo")
    private String productNo;

    private String name;

    @TableField("categoryId")
    private Integer categoryId;

    private String popular;

    private String favor;

    private String hot;

    private String status;

    @TableField(exist = false)
    private DrPicture picture;

    @TableField(exist = false)
    private List<DrPicture> pictures;

    @TableField(exist = false)
    private List<DrSpecEntry> specEntries;

    @TableField(exist = false)
    private BigDecimal minPrice;
}
